package com.example.demo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class GirlController {
    @Autowired
    private  GirlProperties girlProperties;
    @RequestMapping(value = "/hello",method = RequestMethod.GET)
    public String say(){
        return "女孩的CupSize:"+girlProperties.getCupSize()+"-----"+"女孩的年龄："+girlProperties.getAge();
    }
}
